package com.wang.music.controller;


import com.wang.music.entity.SongList;
import com.wang.music.service.SongListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 歌单表 前端控制器
 * </p>
 *
 * @author zifan
 * @since 2021-03-16
 */
@RestController
@RequestMapping("/songList")
public class SongListController {

    @Autowired
    private SongListService songListService;

    /**
     * 全部歌单
     */
    @GetMapping("/allSongList")
    public List<SongList> allSongList(){
        return songListService.allSongList();
    }

}

